<div class="box">
  <div class="box-header">
    <ob_link><a class="btn confirm ajax-get" href="{:url('logClean')}"><i class="fa fa-trash-o"></i> 清空日志</a></ob_link>
    
    
    <div class="box-tools ">
        
        <div class="input-group input-group-sm search-form" style="width: 400px;">
            
             <select class="form-control search-input" name="name" style="width: 160px;">
                 <option value="0">不限类型</option>
                {volist name='option_list' id='vo'}
                    <option value="{$vo['name']}" {if condition="input('name') == $vo['name']"} selected="selected" {/if} >{$vo['name']}</option>
                {/volist}
             </select>
           <input name="search_data" class="pull-right search-input" value="{:input('search_data')}" placeholder="请输入用户名" type="text">
           <div class="input-group-btn">
             <button type="button" id="search" url="{:url('logList')}" class="btn btn-default"><i class="fa fa-search"></i></button>
           </div>
        </div>
    </div>
    <br/>
    
  </div>
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>名称</th>
          <th>描述</th>
          <th>执行者</th>
          <th>执行IP</th>
          <th>执行URL</th>
          <th>执行时间</th>
          <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>{$vo.name}</td>
                  <td>{$vo.describe}</td>
                  <td>{$vo.username}</td>
                  <td>
                      {$vo.ip} - {:get_position($vo.ip)}
                  </td>
                  <td>{$vo.url}</td>
                  <td>{$vo.create_time}</td>
                  <td class="col-md-2 text-center">
                      <ob_link><a class="confirm ajax-get" href="{:url('logDel', array('id' => $vo['id']))}"><span class='badge bg-green'>删除</span></a></ob_link>
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="7" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
  </div>

  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>

</div>